package com.wanmait.community.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 员工角色表
 */
@Data
@Accessors(chain = true)
@TableName(value = "admin_role")
public class AdminRole {
    /**
     * 管理员id
     */
    @TableField(value = "admin_id")
    private Integer adminId;
    @TableField(exist = false)
    private Admin admin;

    /**
     * 角色id
     */
    @TableField(value = "role_id")
    private Integer roleId;
    @TableField(exist = false)
    private Role role;
}